<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>TRADERATTR</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
  </script>
 </head>
 <body>
		<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="traderattrController.do?doUpdate" tiptype="6">
					<input id="id" name="id" type="hidden" value="${traderattrPage.id }"/>
		<table style="width: 99%;" cellpadding="0" cellspacing="1" class="formtable">
					<tr>
						<td align="right">
							<label class="Validform_label">
								地区编码:
							</label>
						</td>
						<td class="value">
							<input id="regioncode" name="regioncode" type="text" style="width: 150px" class="searchbox-inputtext"  ignore="ignore" readonly="readonly" onclick="popupClick(this,'regioncode','regioncode','region_select')" value='${traderattrPage.regioncode}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">地区编码</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								属性中文名称:
							</label>
						</td>
						<td class="value">
						    <input id="attrname" name="attrname" type="text" maxlength="50" style="width: 150px"  datatype="*"  ignore="checked"  value='${traderattrPage.attrname}' onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">属性中文名称</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								属性英文名称:
							</label>
						</td>
						<td class="value">
						    <input id="attrnameEn" name="attrnameEn" type="text" maxlength="50" style="width: 150px"  datatype="*"  ignore="checked"  value='${traderattrPage.attrnameEn}' onkeyup="value=value.replace(/[^a-zA-Z]/g,'')"/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">属性英文名称</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								对应字段:
							</label>
						</td>
						<td class="value">
						    <input id="field" name="field" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${traderattrPage.fieldjee}' onkeyup="this.value=this.value.replace(/\D/g,'')"/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">对应字段</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								控件类型:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="controltype" type="list"  datatype="*"  typeGroupCode="CTRLTYPE"   defaultVal="${traderattrPage.controltype}" hasLabel="false"  title="控件类型" ></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">控件类型</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								数值长度:
							</label>
						</td>
						<td class="value">
						    <input id="length" name="length" type="text" maxlength="38" style="width: 150px"  datatype="n" ignore="ignore"  value='${traderattrPage.length}' onkeyup="this.value=this.value.replace(/\D/g,'')"/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">数值长度</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								默认值:
							</label>
						</td>
						<td class="value">
						    <input id="defaultvalue" name="defaultvalue" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${traderattrPage.defaultvalue}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">默认值</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								引用对象:
							</label>
						</td>
						<td class="value">
						    <input id="refobject" name="refobject" type="text" maxlength="30" style="width: 150px"  ignore="ignore"  value='${traderattrPage.refobject}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">引用对象</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								是否有效:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="isvalid" type="list"  datatype="*"  typeGroupCode="ISN"   defaultVal="${traderattrPage.isvalid}" hasLabel="false"  title="是否有效" ></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">是否有效</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								排序:
							</label>
						</td>
						<td class="value">
						    <input id="orderid" name="orderid" type="text" maxlength="19" style="width: 150px"  datatype="n" ignore="ignore"  value='${traderattrPage.orderid}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">排序</label>
						</td>
					</tr>
				
					<tr>
						<td align="right">
							<label class="Validform_label">
								校验表达式:
							</label>
						</td>
						<td class="value" colspan="3">
						  	 	<textarea id="validator" style="height:auto;width:95%;" rows="6" name="validator"  ignore="ignore" >${traderattrPage.validator}</textarea>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">校验表达式</label>
						</td>
					</tr>
			</table>
		</t:formvalid>
 </body>
